﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NopSolutions.NopCommerce.LuceneHelper;

namespace NopSolutions.NopCommerce.Web.Templates.Lucene
{
    public abstract class BaseLuceneFilterableControl : BaseNopUserControl
    {
        protected void LoadFilters(object sender, FilterEventArgs e)
        {
            BindData(e);
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            LuceneContext.Instance.LoadFilters += LoadFilters;
        }

        public abstract void BindData(FilterEventArgs e);
    }
}